package ExtendsBlogDemo;

public class Base4 {
    int a;
    int b;
    public void method () {
        System.out.println("Base4中的method");
    }
}
class Derive4 extends Base4 {
    int a = 10;
    int b = 20;

    public void method(int a) {
        System.out.println(a + "Derive4中的method");
    }

    public void r() {
        super.a = 30;
        super.b = 40;
        method(1);
        super.method();
    }
}

